package com.qfedu.api.point.feign;

import com.qfedu.api.config.FeignConfig;
import com.qfedu.api.point.fallback.PointFallbackFactory;
import com.qfedu.common.core.common.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Classname PointFeignService
 * @Description TODO
 * @Date 2025-05-28 14:52
 * @Created by 老任与码
 */
// configuration指定配置类
@FeignClient(name = "micro-user",
        configuration = FeignConfig.class,
        fallbackFactory = PointFallbackFactory.class)
public interface PointFeignService {
    @PostMapping("/user/point/remote/add")
    R remoteAddPoint(@RequestParam("pointType") Integer pointType);

}
